package model

import "gorm.io/gorm"

/**
 * @Description
 * @Date 2023/5/15 周一 10:52
 * @Author Tang-J-L <vx：17685112557>
 */

type Category struct {
	gorm.Model
	CategoryId    uint
	ParentId      uint   `gorm:"column:parent_id;size:20;comment:符分类ID;"`
	CategoryName  string `gorm:"column:category_name;size:50;comment:分类名称;"`
	CategoryLevel uint   `gorm:"column:category_level;size:11;comment:分类层级;"`
	ShowStatus    uint   `gorm:"column:show_status;size:50;comment:是否显示[0-不显示，1-显示];"`
	Sort          uint   `gorm:"column:sort;size:11;comment:排序;"`
}

// TableName 结构体方法
func (table *Category) TableName() string {
	return "category"
}
